<html {$html_attrs}>
<head><title>{$caption sales_orders}</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#center_block{$id} {width:auto;margin:0 auto;min-width:500px;}
#contents_block{$id} {text-align:center;width:100%}
#header_block{$id} {width:100%;white-space:nowrap;height:31px;padding-top:5px;}
#main_block{$id} {padding:10px 0;width:100%}
#inmain_block{$id} {margin:0 10px}
#fields_block{$id} {width:100%;mrgin-top:10px;}
#fields_block{$id} td.es{padding:4px 0 4px 10px;}
#buttons_block{$id} {width:100%;padding-bottom:5px}
#required_block{$id} {text-align:left;padding:5px}
#buttons_block{$id} > * {margin:0 2px}
#span{$id} {margin:0 20px 0 20px;}
</style>
<!--[if IE]>
<style>
#main_block {padding:10px 10;}
#fields_block{$id} {width:auto;}
#inmain_block {margin:0 0px}
</style>
<![endif]-->
{END style_block}
</head>
<body {$bodyattrs}>
{BEGIN body}
{$header}
{BEGIN flybody}
<table align=center id="center_block{$id}"><tr><td id="contents_block{$id}">
<b class="xtop"><b class="rb1 rb1_top"></b><b class="rb2 rb2_top"></b><b class="rb3 rb3_top"></b><b class="rb4 rb4_top"></b></b>
<div id="header_block{$id}" class="top">
{$caption sales_orders}, {mlang_message EDIT_RECORD} [
{$label sales_orders id}: {$show_key1}
]
</div>
<div id="main_block{$id}" class="xboxcontentb" >
<div id="inmain_block{$id}" class="xboxcontentb" >
{BEGIN message_block}
<div id="message_block{$id}" class="downedit">{$message}</div>
{END message_block}

<table cellpadding="4" cellspacing="0" border="0" id="fields_block{$id}">
{BEGIN order_date_fieldblock}
	<tr>
		<td width="150" class="es editshadeleft_b">{BEGIN order_date_label}{$label sales_orders order_date}{END order_date_label}</td>
		<td width="245" class="es editshademiddle_lb">{$order_date_editcontrol}</td>
		<td width="5" class="editshaderight_rb">&nbsp;</td>
	</tr>
{END order_date_fieldblock}
{BEGIN order_no_fieldblock}
	<tr>
		<td width="150"class="es editshade_b">{$label sales_orders order_no}</td>
		<td width="245" class="es editshade_lb">{$order_no_editcontrol}&nbsp;</td>
		<td class="editshade_cb">&nbsp;</td>
	</tr>
{END order_no_fieldblock}
{BEGIN account_id_fieldblock}
	<tr>
		<td width="150"class="es editshade_b">{$label sales_orders account_id}</td>
		<td width="245" class="es editshade_lb">{$account_id_editcontrol}&nbsp;</td>
		<td class="editshade_cb">&nbsp;</td>
	</tr>
{END account_id_fieldblock}
{BEGIN buyer_id_fieldblock}
	<tr>
		<td width="150"class="es editshade_b">{$label sales_orders buyer_id}</td>
		<td width="245" class="es editshade_lb">{$buyer_id_editcontrol}&nbsp;</td>
		<td class="editshade_cb">&nbsp;</td>
	</tr>
{END buyer_id_fieldblock}
{BEGIN currency_id_fieldblock}
	<tr>
		<td width="150"class="es editshade_b">{$label sales_orders currency_id}</td>
		<td width="245" class="es editshade_lb">{$currency_id_editcontrol}&nbsp;</td>
		<td class="editshade_cb">&nbsp;</td>
	</tr>
{END currency_id_fieldblock}
{BEGIN shipment_mode_id_fieldblock}
	<tr>
		<td width="150"class="es editshade_b">{$label sales_orders shipment_mode_id}</td>
		<td width="245" class="es editshade_lb">{$shipment_mode_id_editcontrol}&nbsp;</td>
		<td class="editshade_cb">&nbsp;</td>
	</tr>
{END shipment_mode_id_fieldblock}
</table>

<div class="downedit2" id="buttons_block{$id}">
{BEGIN legend}
 <div id="required_block{$id}" ><img alt="bullet" src="images/icon_required.gif"> - {mlang_message REQUIRED_FIELD}</div>
 {END legend}
 {$legendBreak}
{BEGIN save_button}
 <span class=buttonborder><input class=button type=submit value="{mlang_message SAVE}" {$savebutton_attrs}></span>
{END save_button} 
{BEGIN reset_button}
 <span class=buttonborder><input class=button type=reset value="{mlang_message RESET}" {$resetbutton_attrs}></span>
{END reset_button}
<span id="span{$id}">&nbsp;</span>
{BEGIN prev_button}
 <span class=buttonborder><input class=button type=reset value=" <<< " {$prevbutton_attrs}></span>
{END prev_button}
{BEGIN back_button}
 <span class=buttonborder><input class=button type=button value="{mlang_message BACK_TO_LIST}" {$backbutton_attrs}></span>
{END back_button}
{BEGIN next_button}
 <span class=buttonborder><input class=button type=reset value=" >>> " {$nextbutton_attrs}></span>
{END next_button}
</div>
<b class="xbottom"><b class="xb4a"></b><b class="xb3a"></b><b class="xb2a"></b><b class="xb1a"></b></b>
</div>
</div>
<b class="xbottom"><b class="xb4b4"></b><b class="xb3b4"></b><b class="xb2b4"></b><b class="xb1b4"></b></b>
</td></tr></table>
{END flybody}

{BEGIN detail_tables}
{$displayDetailTable_sales_order_items}
{END detail_tables}
<br><br>
{$footer}
{END body}
</body>
</html>
